<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>Index</h1>
    <script>
      const xhr = new XMLHttpRequest();

      xhr.open("GET", "http://localhost:8080/users");
    //   xhr.open("GET", "http://localhost:8081/users");
      //   xhr.open("GET", "http://localhost:8080/users");

      xhr.responseType = "json";
      xhr.onload = function () {
        console.log(xhr.response);
      };

      xhr.send();

      /*
    HTTP/1.1 200 OK
    Access-Control-Allow-Origin:
    X-Powered-By: Express
    Cache-Control: no-cache
    Pragma: no-cache
    Expires: -1
    X-Content-Type-Options: nosniff
    Content-Type: application/json; charset=utf-8
    Content-Length: 43
    ETag: W/"2b-zzgLtF2xD3kcnAsLD3oJQZsIcOo"
    Vary: Accept-Encoding
    Date: Fri, 08 Sep 2023 02:20:26 GMT
    Connection: keep-alive
    Keep-Alive: timeout=5
    */

      /*
    HTTP/1.1 200 OK
X-Powered-By: Express
Access-Control-Allow-Origin: http://localhost:8080
Vary: Origin
Access-Control-Allow-Credentials: true
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Date: Fri, 08 Sep 2023 02:23:23 GMT
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Content-Length: 43
ETag: W/"2b-zzgLtF2xD3kcnAsLD3oJQZsIcOo"
    */
    </script>
  </body>
</html>
